<template>
    <el-dialog
      title="提示"
      :visible.sync="dialogConfirmVisible"
      width="30%"
      :before-close="handleClose"
    >
      <span>你确定进行此操作么？</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="closeConfirmDialog()">取 消</el-button>
        <el-button type="primary" @click="finishConfirmDialog()"
          >确 定</el-button
        >
      </span>
    </el-dialog>
</template>
<script>
export default {
  props:{
     dialogConfirmVisible: {
      type: Boolean,
      default: () => false,
    },
    closeConfirmDialog: {
      type: Function,
      default: () => {},
    },
    finishConfirmDialog: {
      type: Function,
      default: () => {},
    }
  },
    data() {
      return {
      };
    },
    methods: {
      handleClose(done) {
        this.$confirm('确认关闭？')
          .then(()=> {
            done();
          })
          .catch(() => {});
      },
    
    }
};
</script>